/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package Modellayer;
import java.util.*;
/**
 *
 * @author Søren
 */
public class SalesOrder {

    int salesOrderID;
    Customer customer;
    String dato;
    String deliveryStatus;
    String deliveryDate;
    SalesLineItem salesLine;

    public SalesOrder (Customer customer, String dato, String deliveryStatus, String deliveryDate, SalesLineItem salesLine)

    {
        this.customer=customer;
        this.dato = dato;
        this.deliveryStatus=deliveryStatus;
        this.deliveryDate=deliveryDate;
	this.salesLine = salesLine;
    }

	public SalesOrder (Customer customer, String date, String deliveryStatus, String deliveryDate)
    {
        this.customer=customer;
        this.dato = dato;
        this.deliveryStatus=deliveryStatus;
        this.deliveryDate=deliveryDate;
		salesLine = new SalesLineItem();
    }

    public SalesOrder()
    {
		salesLine = new SalesLineItem();
    }

    public SalesLineItem getSalesLine() {
        return salesLine;
    }

    public void setSalesLine(SalesLineItem salesLine) {
        this.salesLine = salesLine;
    }

    public int getSalesOrderID() {
        return salesOrderID;
    }

    public void setSalesOrderID(int salesOrderID) {
        this.salesOrderID = salesOrderID;
    }

    public Customer getCustomer() {
        return customer;
    }

    public void setCustomer(Customer customer) {
        this.customer = customer;
    }

    public String getDato() {
        return dato;
    }

    public void setDato(String dato) {
        this.dato = dato;
    }

    public String getDeliveryDate() {
        return deliveryDate;
    }

    public void setDeliveryDate(String deliveryDate) {
        this.deliveryDate = deliveryDate;
    }

    public String getDeliveryStatus() {
        return deliveryStatus;
    }

    public void setDeliveryStatus(String deliveryStatus) {
        this.deliveryStatus = deliveryStatus;
    }
}
